var lg_name = document.getElementById('lg_name');
var lg_pass = document.getElementById('lg_pass');

if (lg_name && lg_pass) {

	lg_name.onfocus = function() {
		if ( lg_name.value == '用户名') {
			lg_name.value = "";
			lg_name.style.color = "#000";
		}
	}
	lg_name.onblur = function() {
		if (lg_name.value == "") {
			lg_name.value = '用户名'
			lg_name.style.color = "#555";
		}
	}

	lg_pass.onfocus = function() {
		if ( lg_pass.value == '000000') {
			lg_pass.value = "";
			lg_pass.style.color = "#000";
		}
	}

	lg_pass.onblur = function() {
		if (lg_pass.value == "") {
			lg_pass.value = '000000'
			lg_pass.style.color = "#555";
		}
	}
}
